package com.example.droideep.fragment.check;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.example.droideep.R;
import com.example.droideep.common.activities.SimpleFragmentBase;

import butterknife.InjectView;

/**
 * @author bri
 * @date 15-6-11.
 */
public class CheckButtonFragment extends SimpleFragmentBase {

    @InjectView(R.id.memory)
    TextView memory;

    @Override
    protected int getContentResId() {
        return R.layout.fragment_check_button;
    }

    @Override
    public void onViewCreated(View view, Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        int maxMemory = (int) (Runtime.getRuntime().maxMemory() / 1024);
        memory.setText(String.format("Max memory is %s KB", maxMemory));
    }
}
